package com.gcb.dao;

import com.gcb.pojo.CheckGroup;
import com.gcb.pojo.CheckItem;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

/**
 * @Author 35235
 * @Date 2021/8/5 8:54
 * @Version 1.0
 */
public interface CheckGroupDao {
    List<CheckItem> findAllFromCheckItem();

    Page<CheckGroup>selectByCondition(String queryString);

    int insertCheckGroup (CheckGroup checkGroup);

    int insertCheckGroupCheckItem(Map map);

    int delete(Integer id);

    CheckGroup findById(Integer id);

    Integer[] findCheckItemIdsByCheckGroupId(Integer id);

    int updateCheckGroup(CheckGroup checkGroup);

    int deleteCheckGroupCheckItem(Integer checkgroupId);

    int deleteCheckGroupCheckItem2(Map map);

    List<CheckGroup>findCheckGroupById(Integer id);
}
